package com.general.framework.core.lang;

import java.util.Objects;

public class Integers {
    /**
     * 不等于空并且不等于0
     * @return boolean
     */
    public static boolean notNullAndZero(final Integer integer) {
        return Objects.nonNull(integer) && !Objects.equals(integer, Numbers.INTEGER_ZERO);
    }
    /**
     * 等于空或者等于0
     * @return boolean
     */
    public static boolean isNullOrZero(final Integer integer) {
        return Objects.isNull(integer) || Objects.equals(integer, Numbers.INTEGER_ZERO);
    }

}
